package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.BuffetExamine;
import com.ruoyi.system.mapper.BuffetExamineMapper;
import com.ruoyi.system.mapper.NormalExamineMapper;
import com.ruoyi.system.service.BuffetExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BuffetExamineServiceImpl implements BuffetExamineService {
    @Autowired
    BuffetExamineMapper buffetExamineMapper;

    @Override
    public List<BuffetExamine> selectList(BuffetExamine examinePlan) {
        return buffetExamineMapper.selectList(examinePlan);
    }

    @Override
    public BuffetExamine selectById(Long id) {
        return buffetExamineMapper.selectById(id);
    }

    @Override
    public Boolean create(BuffetExamine examinePlan) {
        return buffetExamineMapper.insert(examinePlan)==1;
    }

    @Override
    public Boolean update(BuffetExamine examinePlan) {
        return buffetExamineMapper.update(examinePlan)==1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return buffetExamineMapper.deleteById(id)==1;
    }
}
